.container
  = render 'root/op_header_return'
  -if @product_list.length > 0
    #sale-hot-container{:style => 'margin-top:4px;'}
      -@product_list.each_index do |index|
        -if index%3==0
          .product-item
            - @product_list[index,3].each do |product|
              .product-cell
                .product-inner
                  .product-img
                    %a.product_img_href{:href => "javascript:product_show('#{product['id'].to_s}')"}
                      = image_tag product['avatar_url']
                  .product-title
                    = product['title']
                  .product-sale
                    %span.price
                      = "¥ #{product['price']}"
                    %a.cart{:href => "javascript:add_product_to_cart('#{product['id'].to_s}',1)"}
                      = image_tag "/root/icon_add_cart.png"
  -else
    .weui_msg
      .weui_icon_area
        %i.weui_icon_info.weui_icon_msg
      .weui_text_area
        %h2.weui_msg_title
          操作提示
        %p.weui_msg_desc
          没有商品，返回首页试试吧！！
      .weui_opr_area
        %p.weui_btn_area
          %a{:href => '/',:class =>'weui_btn weui_btn_default' }
            返回首页

  .shopping_cart
    %a.icon_container{:href => 'javascript:cart_click();'}
      = image_tag "/root/shopingcart_icon_hightlighted.png"
      -if @shoppingcart_number==0
        %span.product_number{:style => 'display:none'}
          = @shoppingcart_number
      -else
        %span.product_number#shoppingcart_air_number
          = @shoppingcart_number

  /购物车
  = render 'root/shoppingcart'
